package com.hk.migration.db.craftsman;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * 用户部门关联
 */
@Data
@Table(name = "base_user_department")
public class BaseUserDepartment implements Serializable {
    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 部门ID
     */
    @Column(name = "department_id")
    private Long departmentId;

    /**
     * 部门分类.IT,CC,SC,HR,FI,FM
     */
    @Column(name = "department_type")
    private String departmentType;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 最后修改时间
     */
    @Column(name = "modified_time")
    private Date modifiedTime;

    @Column(name = "company_id")
    private Long companyId;

    /**
     * hello kid后台数据ID
     */
    @Column(name = "hk_id")
    private Long hkId;

    private static final long serialVersionUID = 1L;
}